<?php
namespace Common\Models;
use Common\BaseModel;
class WOrderCommissions extends BaseModel
{
    public $res;
    public $expire;
    public function initialize()
    {
        parent::initialize();
        $this->setSource('w_order_commissions');
    }

    /**
     * 查找当前分佣的总条数
     */
    public function orderUserCommissions($order_id){
        $conditions="order_id='{$order_id}'";
        $count = $this->count(array(
            $conditions
        ));
        return $count;
    }


}
